from rest_framework import serializers

from tag.models import Tag


class TagDetailSer(serializers.ModelSerializer):
    class Meta:
        model = Tag
        fields = (
            'name',
            'created_time',
        )


class TagSimpleSer(serializers.ModelSerializer):
    class Meta:
        model = Tag
        fields = (
            'name',
        )
